package com.qs.education.service.impl;

import org.springframework.stereotype.Service;

import com.qs.education.bean.api.PageBean;
import com.qs.education.bean.api.ResponseListBean;
import com.qs.education.bean.beans.EducationTeacherResponse;
import com.qs.education.bean.entity.EducationTeacher;
import com.qs.education.bean.service.BaseService;
import com.qs.education.service.ITeacherService;

/**
 * 
 * @class TeacherServiceImpl
 * @author Jason
 * @description
 * @date Nov 6, 2018 9:46:04 AM
 */
@Service
public class TeacherServiceImpl extends BaseService implements ITeacherService{


	@Override
	public EducationTeacherResponse deleteTeacherById(Integer teacherId) {
		
		return apiCaller.deleteTeacherById(teacherId);
	}

	@Override
	public EducationTeacherResponse findTeacherById(Integer teacherId) {
		
		return apiCaller.findTeacherById(teacherId);
	}

	@Override
	public EducationTeacherResponse updateTeacher(EducationTeacher educationTeacher) {
		
		return apiCaller.updateTeacher(educationTeacher);
	}

	@Override
	public EducationTeacherResponse addTeacher(EducationTeacher educationTeacher) {
		
		return apiCaller.addTeacher(educationTeacher);
	}

	@Override
	public ResponseListBean<EducationTeacher> findTeacherByCondition(EducationTeacher teacher) {
		
		return apiCaller.findTeacherByCondition(teacher);
	}

	@Override
	public PageBean getEducationTeacher(EducationTeacher teacher, Integer currentPage, Integer pageSize) {
		
		return apiCaller.getTeacher(teacher,currentPage,pageSize);
	}

}
